<? startScript('jquery, jquery.tools'); ?><script type="text/javascript">
	jQuery(function($) { $("ul.jt-tabs").tabs("div.jt-panes > div"); });
</script><? endScript(); ?>

<form action="" method="post">

<fieldset>

	<ul class="jt-tabs"><?
	
		foreach($DATA['langs'] as $lang) {
			?><li><a href="#<?=$lang['text']?>"><?=$lang['assoc']?></a></li><? 
		} 
		
	?></ul>
	
	<div class="jt-panes"><? $t = true; 
	
			foreach($DATA['langs'] as $lang) { $l = $lang['text'];
	
			?><div class="jt-pane" style="<?=$t ? 'display:block' : ''?>">
	
				<p><label><?=t('URL to redirect to', 'cpn')?>
					<input type="text" class="wide" name="url[<?=$l?>]" value="<?=hdat('settings', 'data', $l, 'url')?>">
				</label></p>

			</div><? 
		
		$t = false; }
	
	?></div>

</fieldset>

	<p><input type="submit" name="editor_save" value="<?=ht('Save', 'cpn')?>" /></p>

</form>
